<?php
namespace app\index\controller;
use think\Controller;
use think\Db;

class Member extends Home{
	//首页
	public function index($id=""){
	    if(!is_login()) {
			$this->redirect("User/login");
		}

		$map["uid"]=is_login();
        $res=getLists('message',$map,10,'id desc',"");
	    $this->assign('res', $res);
		return $this->fetch();
	}


		//系统消息列表
	public function message($id=""){
	    if(!is_login()) {
			$this->redirect("User/login");
		}

		$map["uid"]=is_login();
        $res=getLists('message',$map,10,'id desc',"");
	    $this->assign('res', $res);
		return $this->fetch();
	}
	//充值列表
	public function pay($id=""){
	   if(!is_login()) {
			$this->redirect("User/login");
		}

		$map["uid"]=is_login();
        $res=getLists('pay',$map,10,'id desc',"");
	    $this->assign('res', $res);
		return $this->fetch();
	}
	//订单列表
	public function order($id=""){
         if(!is_login()) {
			$this->redirect("User/login");
		}
		$map["uid"]=is_login();
        $res=getLists('order',$map,10,'id desc',"");
	    $this->assign('res', $res);
		return $this->fetch();
	}

}